﻿/*
 * TLLogicTask.h
 *
 *  Created on: Mar 2, 2015
 *      Author: yuliang
 */

#ifndef TLLOGICTASK_H_
#define TLLOGICTASK_H_

#include "LLogicBase.h"

class CTLLogicTask : public CTLLogicBase {
public:
	CTLLogicTask();
	virtual ~CTLLogicTask();

	// 初始化(资源/业务)
	virtual void LogicInit();
	// 捕获此业务模块的业务包,是返回true,否则返回false
	virtual bool CatchLogic(const ProtocolBase *head, char * data, uint32_t len, void * connect);
	bool HasGet() const { return m_HasGet; }
	void XuanshangGet();
	void XuanshangStart();
private:
	void XuanshangGetResp(const ProtocolBase *head, char * data, uint32_t len, LSocket* connect);
	void XuanshangStartReq(const ProtocolBase *head, LSocket* connect);
private:
	bool					m_HasGet;
};

#endif /* TLLOGICTASK_H_ */
